<form id="edit-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="">
    {:token()}
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">名称</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control"  name="row[name]" value="{$row['name']}" data-rule="required;" />
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">显示位置:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_select('row[position]', $position_list, $row['position'], ['class'=>'form-control',  'data-rule'=>'required'])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">权重:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control"  name="row[weigh]" value="{$row['weigh']}" data-rule="required;" />
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">链接地址:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control"  name="row[url_link]" value="{$row['url_link']}" data-rule="required;" />
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">图标地址:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" name="row[icon_link]" value="{$row['icon_link']}" />
        </div>
    </div>
    
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status]', ['normal'=>__('Normal'), 'hidden'=>__('Hidden')])}
        </div>
    </div>
    <div class="form-group hidden layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
